﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrador.Master" AutoEventWireup="true" CodeBehind="UI_RegisterStudent.aspx.cs" Inherits="Espam.Idiomas.Decimo.Tesis.Web.UI_RegisterStudent" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" runat="server">
    <script type="text/javascript">
        window.onload = function () {
            var seconds = 3;
            setTimeout(function () {
                document.getElementById("lblvalida").style.display = "none";
            }, seconds * 1000);
        };
    </script>

    <script type="text/javascript">
        function openModal() {
            $('#flexModal').modal('show');
        }
    </script>

    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
    <div id="page-wrapper">

        <div class="page-content">

            <!-- begin PAGE TITLE AREA -->
            <!-- Use this section for each page's title and breadcrumb layout. In this example a date range picker is included within the breadcrumb. -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="page-title">
                        <h1>Mátriculas
                                <small>Nuevo Registro</small>
                        </h1>
                        <ol class="breadcrumb">
                            <li class="active">
                                <asp:Label ID="lblvalida" runat="server" Text="" Visible="False" ClientIDMode="Static"></asp:Label></li>
                            <li class="pull-right">
                                <div id="reportrange" class="btn btn-green btn-square date-picker">
                                    <i class="fa fa-calendar"></i>
                                    <span class="date-range"></span><i class="fa fa-caret-down"></i>
                                </div>
                            </li>
                        </ol>
                    </div>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <!-- end PAGE TITLE AREA -->

        </div>

        <!-- end PAGE TITLE ROW -->

        <div class="row">
            <!-- Validation Examples -->
            <div class="col-lg-12">
                <div class="portlet portlet-default">
                    <div class="portlet-heading">
                        <div class="portlet-title">
                            <h4>Datos Nuevo Registro</h4>
                        </div>
                        <div class="portlet-widgets">
                            <a data-toggle="collapse" data-parent="#accordion" href="#validationExamples"><i class="fa fa-chevron-down"></i></a>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div id="validationExamples" class="panel-collapse collapse in">
                        <div class="portlet-body">

                            <div class="portlet-body">
                                <div class="table-responsive">
                                    <table class="table">
                                        <thead>
                                            <tr id="row" runat="server">
                                                <td>Buscar:</td>
                                                <td>
                                                    <asp:TextBox ID="txtBuscar" runat="server" CssClass="form-control" MaxLength="31" OnTextChanged="txtBuscar_TextChanged" placeholder="Ingrese Apellidos Nombres" ></asp:TextBox>
                                                    <cc1:AutoCompleteExtender ID="AutoCompleteExtender1"
                                                        runat="server"
                                                        TargetControlID="txtBuscar"
                                                        Enabled="true"
                                                        MinimumPrefixLength="2"
                                                        EnableCaching="true"
                                                        UseContextKey="true"
                                                        CompletionSetCount="30"
                                                        CompletionInterval="0"
                                                        ServiceMethod="GetEstudiante"
                                                        CompletionListCssClass="autocomplete_completionListElement"
                                                        CompletionListItemCssClass="autocomplete_listItem"
                                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" ServicePath="~/GetAlumno.asmx" >
                                                        
                                                    </cc1:AutoCompleteExtender>
                                                    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" TargetControlID="txtBuscar" FilterType="UppercaseLetters,LowercaseLetters,Custom" ValidChars=" ,ñ,Ñ,Á,É,Í,Ó,Ú"></cc1:FilteredTextBoxExtender>
                                                </td>

                                                <td>
                                                    <asp:Label ID="lblEstadoNivel" runat="server" Text="Default"></asp:Label></td>
                                                <td>
                                                    <asp:Label ID="lblUltimoModuloAprobado" runat="server" Text="-------------------" CssClass="form-control"></asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td>Nombres:</td>
                                                <td>
                                                    <asp:TextBox ID="txtNombres" autocomplete="off" runat="server" CssClass="form-control" placeholder="Ingrese Nombres" Style="text-transform: uppercase"></asp:TextBox>
                                                    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtNombres" FilterType="UppercaseLetters,LowercaseLetters,Custom" ValidChars=" "></cc1:FilteredTextBoxExtender>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Campo Obligatorio" ControlToValidate="txtNombres" ForeColor="Red" ToolTip="Ingrese el numero de ciclo"></asp:RequiredFieldValidator>
                                                </td>
                                                <td>Apellidos:</td>
                                                <td>
                                                    <asp:TextBox ID="txtApellidos" autocomplete="off" runat="server" CssClass="form-control" placeholder="ingrese apellidos" ValidationGroup="modulo" Style="text-transform: uppercase"></asp:TextBox>
                                                    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="LowercaseLetters, UppercaseLetters,Custom" ValidChars=" ,ñ,Ñ,Á,É,Í,Ó,Ú" TargetControlID="txtApellidos"></cc1:FilteredTextBoxExtender>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Campo Obligatorio" ControlToValidate="txtApellidos" ForeColor="Red"></asp:RequiredFieldValidator>
                                                </td>

                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td>Documento:</td>
                                                <td>
                                                    <asp:TextBox ID="txtDocumento" placeholder="INGRESE NUMERO DE CÉDULA" MaxLength="10" autocomplete="off" runat="server" CssClass="form-control" ValidationGroup="modulo"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Campo Obligarotio" ControlToValidate="txtDocumento" ForeColor="Red"></asp:RequiredFieldValidator>
                                                    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="Numbers" TargetControlID="txtDocumento"></cc1:FilteredTextBoxExtender>

                                                </td>
                                                <td>Genero:</td>
                                                <td>
                                                    <asp:DropDownList ID="ddlGenero" runat="server" CssClass="form-control"></asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Campo Obligatorio" ControlToValidate="ddlGenero"></asp:RequiredFieldValidator>
                                                    <%--</form>--%></td>
                                            </tr>
                                            <tr>
                                                <td>Semestre:</td>
                                                <td>
                                                    <asp:DropDownList ID="ddlSemestre" runat="server" CssClass="form-control"></asp:DropDownList></td>
                                                <td>Carrera:</td>
                                                <td>
                                                    <asp:DropDownList ID="ddlCarrera" runat="server" CssClass="form-control"></asp:DropDownList></td>

                                            </tr>

                                            <tr>
                                                <td>Nivel:</td>
                                                <td>
                                                    <asp:DropDownList ID="ddlNivel" runat="server" CssClass="form-control" OnSelectedIndexChanged="ddlNivel_SelectedIndexChanged"></asp:DropDownList></td>
                                                <td>Horario:</td>
                                                <td>
                                                    <asp:DropDownList ID="ddlHorario" runat="server" CssClass="form-control"></asp:DropDownList></td>

                                            </tr>

                                            <tr>
                                                <td><%--Tipo Usuario--%></td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddlRol" runat="server" CssClass="form-control"></asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Campo Obligatorio" ControlToValidate="ddlRol"></asp:RequiredFieldValidator>--%>
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" Visible="true" CssClass="btn btn-block" OnClick="btnCancelar_Click" /></td>
                                                <td>

                                                    <asp:Button ID="btnGuardarDocente" runat="server" Text="Registrar Mátricula" CssClass="btn btn-dark-blue" OnClick="btnGuardarDocente_Click" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                        <ContentTemplate>
                                                            <asp:Button ID="hplCalificaciones" runat="server" Text="Historial" Visible="false" OnClick="hplCalificaciones_Click" />
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <!-- /.col-lg-12 -->
            <!-- End Validation Examples -->
        </div>


        <!--as-->
        <div class="modal modal-flex fade" id="flexModal" tabindex="-1" role="dialog" aria-labelledby="flexModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="flexModalLabel">HISTORIAL DE CALIFICACIONES</h4>
                    </div>

                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <%-- <div class="modal-body">
                            Seguro que desea bloquear/desbloquear el acceso a este semestre?
                            <asp:HiddenField ID="HfDeleteID" runat="server"/>
                        </div>--%>
                            <div class="modal-footer">

                                <%-- <div class="col-lg-12">
                        <div class="portlet portlet-default">
                            <div class="portlet-heading">
                                <div class="portlet-title">
                                    <h4>Calificaciones</h4>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div id="Div1" class="panel-collapse collapse in">--%>

                                <div class="portlet-body">

                                    <div class="table-responsive">

                                        <%--</form>--%>
                                        <asp:GridView ID="gvCalificaciones" Width="100%" runat="server"
                                            AutoGenerateColumns="False" CellPadding="4" GridLines="Horizontal"
                                            BackColor="White" BorderColor="#336666"
                                            BorderStyle="Double" BorderWidth="3px">
                                            <Columns>
                                                <asp:BoundField DataField="descripcion" HeaderText="NIVEL">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                              
                                                <asp:BoundField DataField="promedio" HeaderText="PROMEDIO" DataFormatString="{0:0.00}" />
                                                <asp:BoundField DataField="estado" HeaderText="ESTADO" />
                                                <asp:BoundField DataField="codigo" HeaderText="MODULO" />
                                            </Columns>
                                            <FooterStyle BackColor="White" ForeColor="#333333" />
                                            <HeaderStyle BackColor="#34495E" Font-Bold="True" ForeColor="White" />
                                            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center"  />
                                            <RowStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Left" />
                                            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                                            <SortedAscendingCellStyle BackColor="#F7F7F7" />
                                            <SortedAscendingHeaderStyle BackColor="#487575" />
                                            <SortedDescendingCellStyle BackColor="#E5E5E5" />
                                            <SortedDescendingHeaderStyle BackColor="#275353" />
                                        </asp:GridView>

                                        <%--</table>--%>
                                    </div>
                                </div>
                                <%--</form>--%>
                            </div>
                            <%--  </div>
                    </div>--%>
                        </div>
                        </ContentTemplate>
                        <%-- <Triggers>
                     <asp:AsyncPostBackTrigger ControlID="btnDelete" />
                 </Triggers>--%>
                    </asp:UpdatePanel>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
    </div>
</asp:Content>
